import { Component } from '@angular/core';
import { MenuController } from '@ionic/angular';

import { Platform } from '@ionic/angular';
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
import { StatusBar } from '@ionic-native/status-bar/ngx';

@Component({
  selector: 'app-menu',
  templateUrl: './menu.page.html',
  styleUrls: ['./menu.page.scss'],
})
export class MenuPage {

  public appPages = [
    {
      title: 'Home',
      url: '/mhome',
      icon: 'home'
    },
    {
      title: 'List',
      url: '/mlist',
      icon: 'list'
    }
  ];

  constructor(private menu: MenuController, private platform: Platform, private splashScreen: SplashScreen, private statusBar: StatusBar) { 
    this.initializeApp();
  }

  initializeApp() {
    this.platform.ready().then(() => {
      this.statusBar.styleDefault();
      this.splashScreen.hide();
    });
  }

}
